package com.opages.platform.common.config;

/**
 * 配置类型
 */
public enum ConfigType {
    file,
    spring;

    public static ConfigType getType(String name) {
        for (ConfigType configType : values()) {
            if (configType.name().equalsIgnoreCase(name)) {
                return configType;
            }
        }
        throw new IllegalArgumentException("illegal type:" + name);
    }
}
